home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / graphics / gnuplot / makefile.unx < prev    next >
Makefile  |  1993-09-15  |  34KB  |  907 lines

  1. #
  2. # $Id: makefile.unx%v 3.50.1.16 1993/08/27 05:04:42 woo Exp $
  3. #
  4. #
  5. ############################################################
  6. #
  7. # GNUPLOT 3.0 Makefile (Unix X11 support) for
  8. #  Apollo/Sun/Dec5000/IBM-RS6000/HP9000/SGI/3B1/386IX/Cray
  9. #
  10. # Original version by:
  11. #   oliveria@caen.engin.umich.edu (ROQUE DONIZETE DE OLIVEIRA)
  12. #   Wed, 3 Jul 91 14:31:37 -0400
  13. #
  14. #>>> Customizing: You must customize part of this makefile for your site.
  15. #>>> Then type 'make' for further instructions.
  16. #>>> Customization instructions look like these lines do (#>>>).
  17. #
  18.  
  19. .NOEXPORT:
  20.  
  21. TARGET = All# What to make by default
  22.  
  23. ############################################################
  24. #>>> Decide where the binaries and manuals will go.
  25. # directory where to install executables on 'make install'
  26. DEST=/usr/local/bin
  27. # directory for installing man page on 'make man_install'.
  28. MANDEST=/usr/local/man/manl
  29. # where to install help file gnuplot.gih
  30. HELPDEST=/usr/local/lib
  31. #HELPDEST=docs/gnuplot.gih
  32. # Where to send email about bugs and comments (locally)
  33. EMAIL=bug-gnuplot@dartmouth.edu
  34.  
  35. ############################################################
  36. #>>> Some machines may need MAKE to be defined explicitly
  37. MAKE   = make
  38. #>>> Choose your C compiler and basic compiler flags.
  39. # the C compiler
  40. CC     = cc
  41. # -O if you trust your compiler's optimizer
  42. COPTS  =
  43. # default loading command
  44. LD     = $(CC) $(CFLAGS)
  45. NPROC  = 2
  46. #
  47. ############################################################
  48. #>>> Choose some optional features.
  49. #>>> At this point there are only two optional features:
  50. # READLINE:
  51. #   If READLINE is defined, then command-line editing is supported.
  52. #   Otherwise, your normal terminal editing is all you get.
  53. #   Some machines will not support this, and they will turn this
  54. #   option off (for example, apollos running SR10.2 or SR10.3 and
  55. #   loaded with BSD4.3 instead of SYS5). Note: problems with
  56. #   gnuplot prompts have been noted when this feature is selected
  57. #   on IBM RS/6000 AIX, and compile errors are encountered on
  58. #   Sequent Dynix 3 and Convex OS 9.0.
  59. # NOCWDRC:
  60. #   If NOCWDRC is defined, then any .gnuplot in the current directory
  61. #   is not read on startup. This is a security consideration
  62. #   especially for root users ( we recommend you define -DNOCWDRC ).
  63. OPTIONS = -DREADLINE -DNOCWDRC
  64.  
  65. #>>> Optionally install the lasergnu script.
  66. # Lasergnu is a handy shell script for creating a plot from the
  67. # command line and sending it directly to the printer. It currently
  68. # supports PostScript and imagen printers, and probably would need
  69. # tailoring to your site.
  70. # Use lasergnu_install to install lasergnu.
  71. # Use lasergnu_noinstall to not install lasergnu (default).
  72. LASERGNU = lasergnu_install
  73.  
  74. ############################################################
  75. # X11 support
  76. #
  77.  
  78. #>>> List your X11 libraries
  79. X11LIBS = -lX11
  80.  
  81. #>>> List where the X11 include directory is found (if other than /usr/include)
  82. X11INCLUDES =
  83.  
  84. #>>> List additional CFLAGS for X11 compilation
  85. # -DOLD_SELECT if you have an old 4.2 BSD OS (e.g. Sun OS 3.5) and
  86. #   encounter compile error for missing include file <sys/select.h>
  87. # -DBSD_TYPES if your system defines FD_* macros for select in
  88. #   <sys/bsdtypes.h>
  89. # -ISC22 to circumvent missing plots past the first on ISC 2.2
  90. X11FLAGS =
  91.  
  92. #>>> You shouldn't have to change these, since they are controlled by
  93. #>>> Machine dependent definitions below.
  94. #       Compile option for plot.c and TERMFLAGS, to include X11 support
  95. PLOTXFLAG = -DX11
  96. #       make gnuplot_x11 by default
  97. GNUPLOT_X11 = gnuplot_x11
  98. #       install gnuplot_x11 by default
  99. X11INSTALL = x11_install
  100.  
  101. ############################################################
  102. #>>> Okay, you've changed enough. Now type 'make'.
  103.  
  104. ############################################################
  105. # This is used to pass many of the above definitions to make
  106. # subprocesses. Don't change this.
  107. MY_FLAGS  = CC="$(CC)" COPTS="$(COPTS)" DEST="$(DEST)" \
  108.         MANDEST="$(MANDEST)" HELPDEST="$(HELPDEST)" \
  109.         EMAIL="$(EMAIL)" LASERGNU="$(LASERGNU)"
  110.  
  111. ############################################################
  112. # Explanations of CFLAGS definitions.
  113. #  These should not need to be changed by you.
  114. # They are set correctly for each machine below. If your machine
  115. # doesn't fit the one of the patterns, override on the make command
  116. # line or make a new target for it and a new _FLAGS definition.
  117. #  -DNOVFORK if you're unix and you have don't have vfork()
  118. #  -DMEMSET if you need to use memset() instead of bzero()
  119. #  -DMEMCPY if your bcopy() is called memcpy()
  120. #  -DNOCOPY if you don't have a memcpy() by any name
  121. #  -DGAMMA=foo if your gamma function is called foo(). Apollos have
  122. #    lgamma(3m). The default is -DGAMMA=gamma.
  123. #  -DGETCWD if your unix uses getcwd() instead of getcd()
  124. #    this is needed by HP-UX and Cray Unicos systems.
  125. #  -DULTRIX_KLUDGE if you run X windows on Ultrix and experience the
  126. #    "every other plot" problem.
  127. #  -DCRIPPLED_SELECT if "select errors" are encountered with X. This
  128. #    option is needed on SVR3 platforms with incomplete support for
  129. #    the BSD select() system call
  130. #  -DXPG3_LOCALE if your system uses the 'setlocale' function to
  131. #    support foreign charactersets (currently only ISO8859-1).
  132. #  -Dunix is required to explicitly define "unix" for SCO and IBM
  133. #          RS/6000 running AIX 3.2
  134. #  -fswitch if you are compiling on a Sun3 (or even -f68881)
  135. #    (but -fswitch is buggy on some systems, so watch out)
  136.  
  137. # Defaults in case the user types 'make All' directly
  138. # Should match X11_FLAGS's CFLAGS definition
  139. CFLAGS = $(COPTS) $(OPTIONS)
  140.  
  141. ############################################################
  142. # Terminal (device) support
  143. #
  144. # All devices available to a given machine are compiled in by default.
  145. # This documents the flags available in TERMFLAGS, although TERMFLAGS
  146. # is usually controlled by the machine-dependent definitions below.
  147. # See other terminal defines in term.h.
  148. # Define ULTRIX_KLUDGE if you have the every-other plot problem in Ultrix X11.
  149. #
  150. # -DAPOLLO      Apollo Graphics Primitive Resource (window resize after replot)
  151. # -DGPR         Apollo Graphics Primitive Resource (fixed-size window)
  152. # -DCGI         SCO CGI
  153. # -DIRIS4D      IRIS4D series computer
  154. # -DSUN         Sun Microsystems Workstation
  155. # -DUNIXPC      unixpc (ATT 3b1 or ATT 7300)
  156. # -DUNIXPLOT    unixplot
  157. # -DGNUGRAPH    use GNU graphics version of UNIX plot library
  158. #               This can only be used in combination with -DUNIXPLOT
  159. # -DX11         X11 Window System (This is $(PLOTXFLAG))
  160. TERMFLAGS = -Iterm $(PLOTXFLAG)
  161.  
  162. ############################################################
  163. # Library explanations.
  164. #  You shouldn't need to adjust this; again, it is handled by the
  165. # machine-dependent definitions below.
  166. #
  167. #  -lplot if you have -DUNIXPLOT in TERMFLAGS
  168. #  -lsuntool -lsunwindow -lpixrect  if you have -DSUN in TERMFLAGS
  169. #  -lgl_s if -DIRIS4D in TERMFLAGS
  170. #  -lccgi if -DCGI in TERMFLAGS
  171. #  -lmgr -lpixrect if -DMGR in TERMFLAGS. (conflicts with SunView)
  172. LIBS = -lm # -lplot is no longer shipped on SUNs
  173.  
  174. ####################################################################
  175. # List of object files except version.o
  176. OBJS = bitmap.o command.o contour.o eval.o graphics.o graph3d.o help.o \
  177.        internal.o misc.o parse.o plot.o readline.o scanner.o \
  178.        setshow.o specfun.o standard.o term.o util.o gnubin.o binary.o
  179.  
  180. NEXTOBJS = epsviewe.o
  181. ############################################################
  182. # Machine-dependent settings.
  183. #
  184. X11_FLAGS = \
  185.            CFLAGS="$(COPTS) $(OPTIONS)" \
  186.            LIBS="$(LIBS)" X11FLAGS="$(X11FLAGS)" X11INCLUDES="$(X11INCLUDES)" \
  187.            X11LIBS="$(X11LIBS)" \
  188.            PLOTXFLAG="$(PLOTXFLAG)" GNUPLOT_X11=$(GNUPLOT_X11) \
  189.            X11INSTALL="$(X11INSTALL)" \
  190.            TERMFLAGS="$(TERMFLAGS)"
  191.  
  192. DEC_OSF_FLAGS = \
  193.            CFLAGS="$(COPTS) $(OPTIONS) -I/usr/sys/include -I/usr/sys/BINARY -DANSI -DNOVFORK -DGAMMA=lgamma -D_XOPEN_SOURCE " \
  194.            LIBS="$(LIBS) -ldnet_stub" \
  195.            X11FLAGS="$(X11FLAGS) -DMOTIF -D_NO_PROTO -D_OSF_SOURCE" \
  196.            X11INCLUDES="$(X11INCLUDES) -I/usr/include/Xm" \
  197.            X11LIBS="$(X11LIBS) -ldnet_stub" \
  198.            PLOTXFLAG="$(PLOTXFLAG)" GNUPLOT_X11=$(GNUPLOT_X11) \
  199.            X11INSTALL="$(X11INSTALL)" \
  200.            TERMFLAGS="$(TERMFLAGS) "
  201.  
  202. DEC_FLAGS = \
  203.            CFLAGS="$(COPTS) $(OPTIONS) " \
  204.            LIBS="-lplot $(LIBS)" X11FLAGS="$(X11FLAGS)" X11INCLUDES="$(X11INCLUDES)" \
  205.            X11LIBS="$(X11LIBS)" \
  206.            PLOTXFLAG="$(PLOTXFLAG)" GNUPLOT_X11=$(GNUPLOT_X11) \
  207.            X11INSTALL="$(X11INSTALL)" \
  208.            TERMFLAGS="$(TERMFLAGS) -DULTRIX_KLUDGE"
  209.  
  210. APOLLO_FLAGS = \
  211.            CFLAGS="$(COPTS) $(OPTIONS) -DGAMMA=lgamma" \
  212.            LIBS="$(LIBS)" X11FLAGS="$(X11FLAGS)" \
  213.            X11INCLUDES="$(X11INCLUDES)" \
  214.            X11LIBS="-L/usr/lib/X11 -lX11" \
  215.            PLOTXFLAG="$(PLOTXFLAG)" GNUPLOT_X11=$(GNUPLOT_X11) \
  216.            X11INSTALL="$(X11INSTALL)" \
  217.            TERMFLAGS="$(TERMFLAGS) -DAPOLLO -DGPR"
  218.  
  219. HP_FLAGS = \
  220.            CFLAGS="$(COPTS) $(OPTIONS) -DMEMSET -DMEMCPY -DGETCWD" \
  221.            LIBS="-lm" X11FLAGS="$(X11FLAGS)" \
  222.            X11INCLUDES="/usr/include/X11R4" \
  223.            X11LIBS="-L/usr/lib/X11R4 -lX11" \
  224.            PLOTXFLAG="$(PLOTXFLAG)" GNUPLOT_X11=$(GNUPLOT_X11) \
  225.            X11INSTALL="$(X11INSTALL)" \
  226.            TERMFLAGS="-Iterm -DX11"
  227.  
  228. SOLARIS_X11_FLAGS = \
  229.            CFLAGS="$(COPTS) $(OPTIONS) -DMEMSET -DMEMCPY -DGETCWD -DSOLARIS" \
  230.            X11FLAGS="$(X11FLAGS)" X11INCLUDES="$(X11INCLUDES)" \
  231.            X11LIBS="$(X11LIBS)" \
  232.            PLOTXFLAG="$(PLOTXFLAG)" GNUPLOT_X11=$(GNUPLOT_X11) \
  233.            X11INSTALL="$(X11INSTALL)" \
  234.            TERMFLAGS="$(TERMFLAGS) -DSOLARIS"
  235.  
  236. SUN_FLAGS = \
  237.            CFLAGS="$(COPTS) $(OPTIONS) -DSUN" \
  238.            LIBS="-lsuntool -lsunwindow -lpixrect $(LIBS)" \
  239.            X11FLAGS=" " X11INCLUDES=" " \
  240.            X11LIBS=" " \
  241.            PLOTXFLAG=" " GNUPLOT_X11=" " X11INSTALL=x11_noinstall \
  242.            TERMFLAGS="-Iterm"
  243.  
  244. SUN_X11_FLAGS = \
  245.            CFLAGS="$(COPTS) $(OPTIONS) " \
  246.            LIBS="-L/usr/openwin/lib $(LIBS)" \
  247.            X11FLAGS="$(X11FLAGS)" \
  248.            X11INCLUDES="-I/usr/openwin/include $(X11INCLUDES)" \
  249.            X11LIBS="$(X11LIBS)" \
  250.            PLOTXFLAG="$(PLOTXFLAG)" GNUPLOT_X11=$(GNUPLOT_X11) \
  251.            X11INSTALL="$(X11INSTALL)" \
  252.            TERMFLAGS="$(TERMFLAGS)"
  253.  
  254. SUN_X11_MGR_FLAGS = \
  255.            CFLAGS="$(COPTS) $(OPTIONS)" \
  256.            LIBS="-lmgr -lpixrect -L/usr/mgr/lib $(LIBS)" \
  257.            X11FLAGS="$(X11FLAGS)" X11INCLUDES="$(X11INCLUDES)" \
  258.            X11LIBS="$(X11LIBS)" \
  259.            PLOTXFLAG="$(PLOTXFLAG)" GNUPLOT_X11=$(GNUPLOT_X11) \
  260.            X11INSTALL="$(X11INSTALL)" \
  261.            TERMFLAGS="-I/usr/mgr/include -Iterm -DMGR $(TERMFLAGS)"
  262.  
  263. SGI_FLAGS = \
  264.            CFLAGS="$(COPTS) $(OPTIONS) -DGETCWD -DNOVFORK" \
  265.            LIBS="-lgl_s -lm" X11FLAGS=" " X11INCLUDES=" " \
  266.            X11LIBS=" " \
  267.            PLOTXFLAG=" " GNUPLOT_X11=" " X11INSTALL=x11_noinstall \
  268.            TERMFLAGS="-Iterm -DIRIS4D -DANSI"
  269.  
  270. SGIX11_FLAGS = \
  271.            CFLAGS="$(COPTS) $(OPTIONS) -DGETCWD -DNOVFORK" \
  272.            LIBS="-lgl_s -lm -lc_s" X11FLAGS="$(X11FLAGS)" \
  273.            X11INCLUDES="$(X11INCLUDES)" \
  274.            X11LIBS="-L/usr/lib/X11 -lX11" \
  275.            PLOTXFLAG="$(PLOTXFLAG)" GNUPLOT_X11=$(GNUPLOT_X11) \
  276.            X11INSTALL="$(X11INSTALL)" \
  277.            TERMFLAGS="-Iterm -DX11 -DIRIS4D -DANSI"
  278.  
  279. CGI_FLAGS = \
  280.            CFLAGS="$(COPTS) $(OPTIONS) -Dunix" \
  281.            LIBS="-lccgi $(LIBS)" X11FLAGS=" " X11INCLUDES=" " \
  282.            X11LIBS=" " PLOTXFLAG=" " GNUPLOT_X11=" " X11INSTALL=x11_noinstall \
  283.            TERMFLAGS="-Iterm -DUNIXPLOT -DCGI"
  284.  
  285. 3B1_FLAGS = \
  286.            CFLAGS="$(COPTS) $(OPTIONS) -DGETCWD -DMEMSET -DMEMCPY -DNOVFORK" \
  287.            LIBS="$(LIBS)" X11FLAGS=" " X11INCLUDES=" " \
  288.            X11LIBS=" " \
  289.            PLOTXFLAG=" " GNUPLOT_X11=" " X11INSTALL=x11_noinstall \
  290.            LD="ld /lib/crt0s.o /lib/shlib.ifile" \
  291.            TERMFLAGS="-Iterm -DUNIXPC"
  292.  
  293. 3B2_FLAGS = \
  294.            CFLAGS="$(COPTS) $(OPTIONS) -DGETCWD -DMEMSET -DMEMCPY -DNOVFORK" \
  295.            X11FLAGS=" " X11INCLUDES=" " \
  296.            X11LIBS=" " \
  297.            PLOTXFLAG=" " GNUPLOT_X11=" " X11INSTALL=x11_noinstall \
  298.            TERMFLAGS="-Iterm -DUNIXPLOT" LIBS="$(LIBS) -lplot"
  299.  
  300. 386IX_FLAGS = \
  301.            CFLAGS="$(COPTS) $(OPTIONS) -DGETCWD -DMEMSET -DMEMCPY -DNOVFORK -DTCSETSW -DTCGETS" \
  302.            LIBS="$(LIBS) -lcposix" X11FLAGS=" " X11INCLUDES=" " \
  303.            X11LIBS=" " PLOTXFLAG=" " GNUPLOT_X11=" " \
  304.            X11INSTALL=x11_noinstall \
  305.            TERMFLAGS="-Iterm -DUNIXPLOT"
  306.  
  307. 386IX_X11_FLAGS = \
  308.            CFLAGS="$(COPTS) $(OPTIONS) -DGETCWD -DMEMSET -DMEMCPY -DNOVFORK -DTCSETSW -DTCGETS" \
  309.            LIBS="$(LIBS) -lcposix" X11FLAGS="$(X11FLAGS)" X11INCLUDES="$(X11INCLUDES)" \
  310.            X11LIBS="$(X11LIBS)" PLOTXFLAG="$(PLOTXFLAG)" GNUPLOT_X11="$(GNUPLOT_X11)" \
  311.            X11INSTALL= "$(X11INSTALL)" \
  312.            TERMFLAGS="-Iterm -DUNIXPLOT -DX11"
  313.  
  314. ISC22_X11_FLAGS = \
  315.            CFLAGS="$(COPTS) $(OPTIONS) -DGETCWD -DMEMSET -DMEMCPY -DNOVFORK -DISC22" \
  316.            LIBS="$(LIBS) -lplot -lcposix" X11FLAGS="$(X11FLAGS)" X11INCLUDES="$(X11INCLUDES)" \
  317.            X11LIBS="$(X11LIBS) -linet -lpt -lcposix" PLOTXFLAG="$(PLOTXFLAG)" GNUPLOT_X11="$(GNUPLOT_X11)" \
  318.            X11INSTALL= "$(X11INSTALL)" \
  319.            TERMFLAGS="-Iterm -DUNIXPLOT -DX11"
  320.  
  321. AIX_FLAGS = \
  322.            CFLAGS="$(COPTS) $(OPTIONS) -DGAMMA=gamma -DXPG3_LOCALE -Dunix" \
  323.            LIBS="$(LIBS) -lbsd" X11FLAGS="$(X11FLAGS)" \
  324.            X11INCLUDES="$(X11INCLUDES)" \
  325.            X11LIBS="$(X11LIBS)" \
  326.            PLOTXFLAG="$(PLOTXFLAG)" GNUPLOT_X11=$(GNUPLOT_X11) \
  327.            X11INSTALL="$(X11INSTALL)" \
  328.            TERMFLAGS="$(TERMFLAGS) -qmaxmem=9000" \
  329.            COMFLAGS="-qmaxmem=3000" SSFLAGS="-qmaxmem=3000"
  330.  
  331. AIXO_FLAGS = \
  332.            CFLAGS="$(COPTS) $(OPTIONS) -DGAMMA=gamma -DXPG3_LOCALE -Dunix" \
  333.            LIBS="$(LIBS) -lbsd" X11FLAGS="$(X11FLAGS)" \
  334.            X11INCLUDES="$(X11INCLUDES)" \
  335.            X11LIBS="$(X11LIBS)" \
  336.            PLOTXFLAG="$(PLOTXFLAG)" GNUPLOT_X11=$(GNUPLOT_X11) \
  337.            X11INSTALL="$(X11INSTALL)" \
  338.            TERMFLAGS="$(TERMFLAGS)"
  339.  
  340. NEXT_FLAGS = \
  341.            CFLAGS="$(COPTS) -DGAMMA=lgamma -DNEXT -DREADLINE -DSGTTY" \
  342.            LIBS="-lNeXT_s -lsys_s -lm" \
  343.            X11FLAGS="$(X11FLAGS)" \
  344.            X11INCLUDES=" " X11LIBS=" " PLOTXFLAG=" " \
  345.            GNUPLOT_X11=" " X11INSTALL=x11_noinstall \
  346.            TERMFLAGS="-Iterm -ObjC -DANSI" OBJS=" $(OBJS) $(NEXTOBJS)"
  347.  
  348. NEXT_X11_FLAGS = \
  349.            CFLAGS="$(COPTS) -DGAMMA=lgamma -DNEXT -DREADLINE -DSGTTY -DX_NOT_POSIX" \
  350.            LIBS="-lNeXT_s -lsys_s -lm" \
  351.            X11LIBS="-L/usr/lib/X11 -lX11" \
  352.            X11INCLUDES="$(X11INCLUDES)" X11FLAGS="$(X11FLAGS)" \
  353.            PLOTXFLAG="$(PLOTXFLAG)" GNUPLOT_X11=$(GNUPLOT_X11) \
  354.            X11INSTALL="$(X11INSTALL)" \
  355.            TERMFLAGS="-Iterm -DX11 -ObjC -DANSI" OBJS=" $(OBJS) $(NEXTOBJS)"
  356.  
  357. CRAY_FLAGS = \
  358.        CFLAGS="$(COPTS) $(OPTIONS) -DGETCWD -DNOVFORK" \
  359.        LIBS="-lm" X11FLAGS=" " \
  360.        X11INCLUDES=" " \
  361.        X11LIBS=" " \
  362.        PLOTXFLAG=" " GNUPLOT_X11=" " \
  363.        X11INSTALL=x11_noinstall \
  364.        TERMFLAGS="-Iterm"
  365.  
  366. CRAY_X11_FLAGS = \
  367.        CFLAGS="$(COPTS) $(OPTIONS) -DGETCWD -DNOVFORK" \
  368.        LIBS="-lm" X11FLAGS="$(X11FLAGS)" \
  369.        X11INCLUDES="$(X11INCLUDES)" \
  370.        X11LIBS="$(X11LIBS)" \
  371.        PLOTXFLAG="$(PLOTXFLAG)" GNUPLOT_X11="$(GNUPLOT_X11)" \
  372.        X11INSTALL=$(X11INSTALL) \
  373.        TERMFLAGS="-Iterm -DX11"
  374.  
  375. PTX_X11_FLAGS = \
  376.        CFLAGS="$(COPTS) $(OPTIONS) -DGETCWD -DMEMSET -DMEMCPY -DCRIPPLED_SELECT" \
  377.        LIBS="-lm -lplot" X11FLAGS="$(X11FLAGS)" \
  378.        X11INCLUDES="$(X11INCLUDES)" \
  379.        X11LIBS="-lX11 -lseq -lsocket -linet -lnsl" \
  380.        PLOTXFLAG="$(PLOTXFLAG)" GNUPLOT_X11="$(GNUPLOT_X11)" \
  381.        X11INSTALL=$(X11INSTALL) \
  382.        TERMFLAGS="$(TERMFLAGS)"
  383.  
  384. SEQUENT_X11_FLAGS = \
  385.        CFLAGS="$(COPTS) $(OPTIONS) -DSGTTY -DCRIPPLED_SELECT" \
  386.        LIBS="-lm -lplot" X11FLAGS="$(X11FLAGS) -DX_WCHAR" \
  387.        X11INCLUDES="$(X11INCLUDES)" \
  388.        X11LIBS="-lX11 -lseq " \
  389.        PLOTXFLAG="$(PLOTXFLAG)" GNUPLOT_X11="$(GNUPLOT_X11)" \
  390.        X11INSTALL=$(X11INSTALL) \
  391.        TERMFLAGS="$(TERMFLAGS)"
  392.  
  393. CONVEX_X11_FLAGS = \
  394.            CFLAGS="$(COPTS) $(OPTIONS) -DHUGE=8.9e307" \
  395.            LIBS="$(LIBS)" X11FLAGS="$(X11FLAGS)" X11INCLUDES="$(X11INCLUDES)" \
  396.            X11LIBS="$(X11LIBS)" \
  397.            PLOTXFLAG="$(PLOTXFLAG)" GNUPLOT_X11=$(GNUPLOT_X11) \
  398.            X11INSTALL="$(X11INSTALL)" \
  399.            TERMFLAGS="$(TERMFLAGS)"
  400.  
  401. KSR_FLAGS = \
  402.            CFLAGS="$(COPTS) $(OPTIONS) -I/usr/sys/include -I/usr/sys/BINARY -DANSI -DNOVFORK -DNOGAMMA -D_XOPEN_SOURCE -DKSR" \
  403.            LIBS="$(LIBS)" \
  404.            X11FLAGS="$(X11FLAGS) -DMOTIF -D_NO_PROTO -D_OSF_SOURCE" \
  405.            X11INCLUDES="$(X11INCLUDES) -I/usr/include/Xm" \
  406.            X11LIBS="$(X11LIBS)" \
  407.            PLOTXFLAG="$(PLOTXFLAG)" GNUPLOT_X11=$(GNUPLOT_X11) \
  408.            X11INSTALL="$(X11INSTALL)" \
  409.            TERMFLAGS="$(TERMFLAGS) "
  410.  
  411. LINUX_FLAGS = \
  412.            CFLAGS="$(COPTS) $(OPTIONS) -m486 -DGAMMA=lgamma" \
  413.            LIBS="-L/usr/X386/lib -lX11 $(LIBS)" \
  414.            X11FLAGS="$(X11FLAGS)" X11INCLUDES="-I/usr/X386/include $(X11INCLUDES)" \
  415.            X11LIBS="$(X11LIBS)" \
  416.            PLOTXFLAG="$(PLOTXFLAG)" GNUPLOT_X11=$(GNUPLOT_X11) \
  417.            X11INSTALL="$(X11INSTALL)" \
  418.            TERMFLAGS="$(TERMFLAGS)"
  419.  
  420. ####################################################################
  421. # List of source files
  422. # Used for making shar files, lint, and some dependencies.
  423. DIRS = term demo docs docs/latextut
  424.  
  425. CSOURCE1 = bf_test.c binary.c command.c setshow.c
  426. CSOURCE2 = help.c gnubin.c graphics.c graph3d.c internal.c
  427. CSOURCE3 = misc.c eval.c parse.c plot.c readline.c scanner.c standard.c
  428. CSOURCE4 = bitmap.c term.c util.c version.c
  429. CSOURCE5 = term/ai.trm term/amiga.trm term/aed.trm term/atari.trm \
  430.     term/bigfig.trm term/cgi.trm term/corel.trm \
  431.     term/djsvga.trm term/dumb.trm \
  432.     term/dxf.trm term/dxy.trm term/debug.trm \
  433.     term/emxvga.trm term/eepic.trm term/epson.trm term/excl.trm \
  434.     term/fig.trm term/grass.trm term/hp26.trm term/hp2648.trm term/hpgl.trm \
  435.     term/hp500c.trm term/hpljii.trm term/metafont.trm term/mgr.trm\
  436.     term/apollo.trm term/gpr.trm term/hppj.trm term/compact.c
  437. CSOURCE6 = term/impcodes.h term/imagen.trm term/next.trm term/object.h \
  438.     term/iris4d.trm term/kyo.trm term/latex.trm term/mif.trm \
  439.     term/pbm.trm term/pslatex.trm term/gpic.trm term/gnugraph.trm
  440. CSOURCE7 = term/post.trm term/pstricks.trm term/qms.trm term/regis.trm \
  441.     term/rgip.trm term/sun.trm \
  442.     term/t410x.trm term/tek.trm term/texdraw.trm term/tgif.h \
  443.     term/tgif.trm term/tpic.trm \
  444.     term/unixpc.trm term/unixplot.trm \
  445.     term/v384.trm term/vws.trm term/x11.trm term/xlib.trm
  446. CSOURCE8 = contour.c specfun.c gplt_x11.c
  447. CONFIGURE = configure configure.in Makefile.in docs/Makefile.in\
  448.     docs/latextut/Makefile.in 0CONFIG
  449. NEXTSRC  = epsviewe.m epsviewe.h
  450. # not C code, but still needed
  451.  
  452. DEMOS = demo/1.dat demo/2.dat demo/3.dat demo/contours.dem \
  453.     demo/controls.dem demo/electron.dem demo/glass.dat demo/param.dem \
  454.     demo/polar.dem demo/simple.dem demo/surface1.dem \
  455.     demo/surface2.dem demo/using.dat demo/using.dem demo/world.cor \
  456.     demo/world.dat demo/world.dem \
  457.     demo/err.dat demo/poldat.dem demo/polar.dat demo/errorbar.dem \
  458.     demo/antenna.dat demo/all.dem demo/animate.dem demo/bivariat.dem \
  459.     demo/prob.dem demo/stat.inc demo/prob2.dem demo/random.dem \
  460.     demo/discrete.dem demo/hidden.dem demo/airfoil.dem demo/gnuplot.rot\
  461.     demo/binary.dem demo/spline.dem demo/steps.dem demo/steps.dat \
  462.     demo/multimsh.dem demo/whale.dat demo/hemisphr.dat \
  463.     demo/scatter.dem demo/scatter2.dat demo/singulr.dem demo/klein.dat
  464.  
  465. ETC = Copyright 0README README.gnu README.ami makefile.unx makefile.vms \
  466.     linkopt.amg makefile.amg makefile.ami linkopt.vms buildvms.com \
  467.     lasergnu makefile.r makefile.nt makefile.g 0FAQ 0BUGS\
  468.     term/README History gnuplot.el intergra.x11 0INSTALL README.3p1\
  469.     README.3p2 README.3p3 README.3p4 README.pro README.nex README.x11 \
  470.     README.3d README.mf README.win README.iso README.3p5 README.pic \
  471.     README.xli $(CONFIGURE)
  472.  
  473. #BETA files (not standard distribution files)
  474. BETA = 
  475. # PC-specific files
  476. PC = corgraph.asm corplot.c header.mac hrcgraph.asm lineproc.mac \
  477.     linkopt.msc makefile.msc makefile.tc makefile.st makefile.djg \
  478.     pcgraph.asm gnuplot.def makefile.286 makefile.emx \
  479.     makefile.ztc linkopt.ztc term/fg.trm term/pc.trm 
  480. WINDOWS = makefile.win makefile.msw README.win win/wcommon.h \
  481.     win/wgnuplib.c win/wgnuplib.def win/wgnuplib.h win/wgnuplib.rc \
  482.     win/wgnuplot.def win/wgnuplot.hpj win/wgnuplot.mnu win/wgnuplot.rc \
  483.     win/wgraph.c win/winmain.c win/wmenu.c win/wpause.c \
  484.     win/wprinter.c win/wresourc.h win/wtext.c win/wtext.h \
  485.     win/geticon.c docs/doc2rtf.c term/win.trm
  486. OS2 = makefile.os2 os2/makefile os2/dialogs.c os2/dialogs.h os2/gclient.c \
  487.     os2/gnuicon.uue os2/gnupmdrv.c os2/gnupmdrv.def os2/gnupmdrv.h \
  488.     os2/gnupmdrv.itl os2/gnupmdrv.rc os2/print.c docs/doc2ipf.c \
  489.     README.os2 term/pm.trm
  490.  
  491. # Documentation and help files
  492. DOCS1 = docs/makefile docs/README docs/checkdoc.c docs/doc2gih.c \
  493.     docs/doc2hlp.c docs/doc2hlp.com docs/doc2ms.c docs/doc2tex.c \
  494.     docs/gnuplot.1 docs/lasergnu.1 docs/toc_entr.sty docs/doc2info.pl \
  495.     docs/titlepag.ms docs/titlepag.tex docs/makefile.ami \
  496.     docs/doc2rtf.c
  497. DOCS2 = docs/gnuplot.doc docs/gpcard.tex
  498. DOCS3 = docs/latextut/makefile docs/latextut/eg1.plt \
  499.     docs/latextut/eg2.plt docs/latextut/eg3.dat docs/latextut/eg3.plt \
  500.     docs/latextut/eg4.plt docs/latextut/eg5.plt docs/latextut/eg6.plt \
  501.     docs/latextut/header.tex docs/latextut/tutorial.tex \
  502.     docs/latextut/linepoin.plt
  503.  
  504. #########################################################################
  505. # Default target (informational)
  506. info:
  507.     @echo "Please do a 'make <MACHINE>' where <MACHINE> is one of the following:"
  508.     @echo
  509.     @echo "apollo       for Apollo running SR10.3 with Apollo's X11"
  510.     @echo "dec_osf      for Dec3100/5000 running DEC OSF/1 v1.0"
  511.     @echo "dec          for Dec3100/5000 running Ultrix 3.1d with MIT's X11"
  512.     @echo "hp           for HP/9000 700 series running HP/UX 8.0 with MIT's X11R4"
  513.     @echo "sun          for Sun sparcstation running SunOS 4.1 with suntools (no X11) "
  514.     @echo "sun_x11      for Sun sparcstation running SunOS 4.1 with suntools and X11 "
  515.     @echo "sgi          for Silicon Graphics IRIS4D machines (no X11) "
  516.     @echo "sgix11       for Silicon Graphics IRIS4D machines (X11) "
  517.     @echo "next         for NeXT Cube and Slab running NeXTOS 2.0+ (no X11)"
  518.     @echo "next_x11     for NeXT Cube and Slab running NeXTOS 2.0+ with X11"
  519.     @echo "3b1          for ATT 3b1 machines (no X11) "
  520.     @echo "3b2          for ATT 3b2 machines (no X11) "
  521.     @echo "386ix        for 386 machines running 386/ix (no X11)"
  522.     @echo "386ix_x11    for 386 machines running 386/ix with T.Roell X386"
  523.     @echo "isc22_x11    for 386 machines running ISC 2.2 with T.Roell X386"
  524.     @echo "aix32        for IBM RS/6000 running AIX 3.2 with xlc 1.2"
  525.     @echo "aix32o       for IBM RS/6000 running AIX 3.2 with xlc 1.1"
  526.     @echo "x11          for a generic machine (like a sun or dec) with MIT's X11"
  527.     @echo "cray         for Cray Y-MP or Cray-2 running Unicos 6.0 or 6.1 (no X11)"
  528.     @echo "cray_x11     for Cray Y-MP or Cray-2 running Unicos 6.0 or 6.1 with X11"
  529.     @echo "ptx_x11      for Sequent Dynix/PTX with MIT X11"
  530.     @echo "sequent_x11  for Sequent Symmetry (DYNIX 3) with X11"
  531.     @echo "convex_x11   for Convex 9.0 with MIT X11"
  532.     @echo "ksr          for KSR1 running DEC OSF/1 v1.0 (use make -j 16)"
  533.     @echo "linux        for LINUX with XFree86-1.2"
  534.     @echo
  535.     @echo "Examples:"
  536.     @echo
  537.     @echo "         make x11"
  538.     @echo "         make apollo"
  539.     @echo "         make apollo       OPTIONS='-DNOCWDRC' "
  540.     @echo "         make apollo       DEST='/usr/um/misc/bin' "
  541.     @echo "         make dec"
  542.     @echo "         make hp"
  543.     @echo "         make next"
  544.     @echo "         make solaris_x11"
  545.     @echo "         make sun          HELPDEST='/usr/um/misc/lib' "
  546.     @echo "         make sun          X11INCLUDES='-I/usr/local/include' "
  547.     @echo "         make sun_x11"
  548.     @echo "         make sgi"
  549.     @echo "         make 3b1"
  550.     @echo "         make 386ix"
  551.     @echo "         make 386ix_x11"
  552.     @echo "         make isc22_x11"
  553.     @echo "         make aix32        MANDEST='/usr/um/misc/man/man1' COPTS='-O' "
  554.     @echo "         make cray"
  555.     @echo "         make cray_x11"
  556.     @echo
  557.     @echo "If you just type 'make All' , it will build gnuplot for Unix X11"
  558.     @echo "and the following variables will be used as default:"
  559.     @echo
  560.     @echo " DEST                     " $(DEST)
  561.     @echo " MANDEST                  " $(MANDEST)
  562.     @echo " HELPDEST                 " $(HELPDEST)
  563.     @echo " EMAIL                    " $(EMAIL)
  564.     @echo " CC                       " $(CC)
  565.     @echo " COPTS                    " $(COPTS)
  566.     @echo " OPTIONS                  " $(OPTIONS)
  567.     @echo " CFLAGS                   " $(CFLAGS)
  568.     @echo " LIBS                     " $(LIBS)
  569.     @echo " X11FLAGS                 " $(X11FLAGS)
  570.     @echo " X11LIBS                  " $(X11LIBS)
  571.     @echo " X11INCLUDES              " $(X11INCLUDES)
  572.     @echo " TERMFLAGS                " $(TERMFLAGS)
  573.     @echo " LASERGNU                 " $(LASERGNU)
  574.     @echo
  575.     @echo "If you are not familiar with makefiles or just want to know what"
  576.     @echo " 'make <MACHINE>' would do without actually doing anything, then type"
  577.     @echo " 'make <MACHINE> -n' "
  578.     @echo
  579.  
  580. ###############################################################
  581. # Targets for each machine
  582.  
  583. x11:
  584.     $(MAKE) $(MFLAGS) $(MY_FLAGS) $(X11_FLAGS)      $(TARGET)
  585.  
  586. dec_osf:
  587.     $(MAKE) $(MFLAGS) $(MY_FLAGS) $(DEC_OSF_FLAGS)  $(TARGET)
  588.  
  589. dec:
  590.     $(MAKE) $(MFLAGS) $(MY_FLAGS) $(DEC_FLAGS)      $(TARGET)
  591.  
  592. apollo:
  593.     $(MAKE) $(MFLAGS) $(MY_FLAGS) $(APOLLO_FLAGS)   $(TARGET)
  594.  
  595. hp:
  596.     $(MAKE) $(MFLAGS) $(MY_FLAGS) $(HP_FLAGS)       $(TARGET)
  597.  
  598. next:
  599.     $(MAKE) $(MFLAGS) $(MY_FLAGS) $(NEXT_FLAGS)     $(TARGET)
  600.  
  601. next_x11:
  602.     $(MAKE) $(MFLAGS) $(MY_FLAGS) $(NEXT_X11_FLAGS) $(TARGET)
  603.  
  604. solaris_x11:
  605.     $(MAKE) $(MFLAGS) $(MY_FLAGS) $(SOLARIS_X11_FLAGS)  $(TARGET)
  606.  
  607. sun:
  608.     $(MAKE) $(MFLAGS) $(MY_FLAGS) $(SUN_FLAGS)      $(TARGET)
  609.  
  610. sun_x11:
  611.     $(MAKE) $(MFLAGS) $(MY_FLAGS) $(SUN_X11_FLAGS)  $(TARGET)
  612.  
  613. sun_x11_mgr:
  614.     $(MAKE) $(MFLAGS) $(MY_FLAGS) $(SUN_X11_MGR_FLAGS)  $(TARGET)
  615.  
  616. sgi:
  617.     $(MAKE) $(MFLAGS) $(MY_FLAGS) $(SGI_FLAGS)      $(TARGET)
  618.  
  619. sgix11:
  620.     $(MAKE) $(MFLAGS) $(MY_FLAGS) $(SGIX11_FLAGS)   $(TARGET)
  621.  
  622. cgi:
  623.     $(MAKE) $(MFLAGS) $(MY_FLAGS) $(CGI_FLAGS)      $(TARGET)
  624.  
  625. 3b1:
  626.     $(MAKE) $(MFLAGS) $(MY_FLAGS) $(3B1_FLAGS)      $(TARGET)
  627.  
  628. 3b2:
  629.     $(MAKE) $(MFLAGS) $(MY_FLAGS) $(3B2_FLAGS)      $(TARGET)
  630.  
  631. 386ix:
  632.     $(MAKE) $(MFLAGS) $(MY_FLAGS) $(386IX_FLAGS)    $(TARGET)
  633.  
  634. 386ix_x11:
  635.     $(MAKE) $(MFLAGS) $(MY_FLAGS) $(386IX_X11_FLAGS) $(TARGET)
  636.  
  637. isc22_x11:
  638.     $(MAKE) $(MFLAGS) $(MY_FLAGS) $(ISC22_X11_FLAGS) $(TARGET)
  639.  
  640. aix32:
  641.     $(MAKE) $(MFLAGS) $(MY_FLAGS) $(AIX_FLAGS)      $(TARGET)
  642.  
  643. aix32o:
  644.     $(MAKE) $(MFLAGS) $(MY_FLAGS) $(AIXO_FLAGS)     $(TARGET)
  645.  
  646. cray:
  647.     $(MAKE) $(MFLAGS) $(MY_FLAGS) $(CRAY_FLAGS)     $(TARGET)
  648.  
  649. cray_x11:
  650.     $(MAKE) $(MFLAGS) $(MY_FLAGS) $(CRAY_X11_FLAGS) $(TARGET)
  651.  
  652. ptx_x11:
  653.     $(MAKE) $(MFLAGS) $(MY_FLAGS) $(PTX_X11_FLAGS)  $(TARGET)
  654.  
  655. sequent_x11:
  656.     make $(MFLAGS) $(MY_FLAGS) $(SEQUENT_X11_FLAGS) $(TARGET)
  657.  
  658. convex_x11:
  659.     $(MAKE) $(MFLAGS) $(MY_FLAGS) $(CONVEX_X11_FLAGS) $(TARGET)
  660.  
  661. ksr:
  662.     $(MAKE) $(MFLAGS) $(MY_FLAGS) $(KSR_FLAGS)  $(TARGET)
  663.  
  664. linux:
  665.     $(MAKE) $(MFLAGS) $(MY_FLAGS) $(LINUX_FLAGS)  $(TARGET)
  666.  
  667. #############################################################
  668. # Targets that really do something
  669.  
  670. all:
  671.     @echo "Please just type  'make'  in order to get some information on "
  672.     @echo "how to build gnuplot under Unix and the X Window System."
  673.  
  674. All: gnuplot $(GNUPLOT_X11) doc demo/binary1
  675.  
  676. gnuplot: $(OBJS) version.o
  677.     $(LD) -o gnuplot $(OBJS) version.o $(LIBS)
  678.  
  679. doc:
  680.     ( cd docs; $(MAKE) $(MFLAGS) $(MY_FLAGS) gnuplot.gih )
  681.  
  682. gnuplot_x11: gplt_x11.c
  683.     $(CC) $(CFLAGS) $(X11FLAGS) $(X11INCLUDES) -o gnuplot_x11 \
  684.     gplt_x11.c $(X11LIBS)
  685.  
  686. demo/binary1 demo/binary2 demo/binary3: bf_test
  687.     ( cd demo; ../bf_test )
  688.  
  689. bf_test: bf_test.o binary.o
  690.     $(CC) $(CFLAGS) bf_test.o binary.o -lm -o bf_test
  691. ################################################################
  692. # Installation instructions
  693.  
  694. install:
  695.     @echo
  696.     @echo "Please do a 'make <MACHINE> TARGET=Install' where <MACHINE> is one of the following:"
  697.     @echo
  698.     @echo "apollo, dec, hp, sun, sun_x11, sgi, sgix11, cgi,"
  699.     @echo "next, next_x11, 3b1, 386ix, 386ix_x11, aix32, aix32o,"
  700.     @echo "x11, cray, cray_x11, ptx_x11, sequent_x11, convex_x11"
  701.     @echo
  702.     @echo "Examples:"
  703.     @echo
  704.     @echo "         make x11          TARGET=Install "
  705.     @echo "         make apollo       TARGET=Install "
  706.     @echo "         make dec          TARGET=Install "
  707.     @echo "         make hp           TARGET=Install "
  708.     @echo "         make sun          TARGET=Install HELPDEST='/usr/um/misc/lib' "
  709.     @echo "         make aix32        TARGET=Install MANDEST='/usr/um/misc/man/man1' COPTS='-O' "
  710.     @echo
  711. ################################################################
  712. # Installation targets
  713.  
  714. Install: All man_install $(X11INSTALL) $(LASERGNU)
  715.     cp gnuplot $(DEST)
  716.     strip $(DEST)/gnuplot
  717.     ( cd docs; $(MAKE) $(MFLAGS) $(MY_FLAGS) install-unix HELPDEST=$(HELPDEST) )
  718.  
  719. x11_install: gnuplot_x11
  720.     cp gnuplot_x11 $(DEST)
  721.     strip $(DEST)/gnuplot_x11
  722.  
  723. x11_noinstall:
  724.     @echo "X11 not requested, so gnuplot_x11 program not installed"
  725.  
  726. man_install: docs/gnuplot.1
  727.     cp docs/gnuplot.1 $(MANDEST)
  728.  
  729. lasergnu_install: lasergnu docs/lasergnu.1
  730.     cp lasergnu $(DEST)
  731.     chmod 755 $(DEST)/lasergnu
  732.     cp docs/lasergnu.1 $(MANDEST)
  733.  
  734. lasergnu_noinstall:
  735.     @echo
  736.     @echo "Lasergnu will not be installed by default."
  737.     @echo "If you think you need the lasergnu script to print"
  738.     @echo " files on the imagen or PostScript printers, then"
  739.     @echo " type"
  740.     @echo "      'make <MACHINE> TARGET=Install LASERGNU='lasergnu_install' "
  741.     @echo
  742.     @echo "Lasergnu is really not needed since within gnuplot you can"
  743.     @echo " can create files (in impress or PostScript language) and"
  744.     @echo " print them through your favorite print command (lpr, lp, prf, ipr)."
  745.     @echo
  746.  
  747. ################################################################
  748. # Dependencies
  749.  
  750. plot.o: plot.c
  751.     $(CC) $(CFLAGS) $(PLOTXFLAG) -c plot.c
  752.  
  753. term.o: term.h term.c $(CSOURCE5) $(CSOURCE6) $(CSOURCE7)
  754.     $(CC) $(CFLAGS) $(TERMFLAGS) -c term.c
  755.  
  756. version.o:
  757.     $(CC) $(CFLAGS) -DCONTACT=\"$(EMAIL)\" -c version.c
  758.  
  759. epsviewe.o : epsviewe.h epsviewe.m
  760.     $(CC) -ObjC -c epsviewe.m
  761.  
  762. $(OBJS): plot.h
  763.  
  764. command.o: command.c
  765.     $(CC) $(CFLAGS) -c command.c -DHELPFILE=\"$(HELPDEST)/gnuplot.gih\" $(COMFLAGS)
  766.  
  767. command.o help.o misc.o: help.h
  768.  
  769. command.o graphics.o graph3d.o misc.o plot.o setshow.o term.o: setshow.h
  770.  
  771. bitmap.o term.o: bitmap.h
  772.  
  773. setshow.o: setshow.c
  774.     $(CC) $(CFLAGS) -c setshow.c $(SSFLAGS)
  775.  
  776. ################################################################
  777. # Miscellaneous targets
  778.  
  779. SOURCES=plot.h help.h setshow.h bitmap.h term.h $(CSOURCE1) $(CSOURCE2) \
  780.     $(CSOURCE3) $(CSOURCE4) $(CSOURCE5) $(CSOURCE6) $(CSOURCE7)\
  781.     $(CSOURCE8) $(NEXTSRC) $(WINDOWS) $(OS2)
  782.  
  783. DOCS  = $(DOCS1) $(DOCS2) $(DOCS3)
  784.  
  785. lint:
  786.     lint -hx $(SOURCES)
  787.  
  788. clean:
  789.     rm -f *.o *.orig *.rej *~ *.bak term/*~ term/*.orig term/*.bak
  790.     ( cd docs; $(MAKE) $(MFLAGS) clean )
  791.     ( cd docs/latextut; $(MAKE) $(MFLAGS) clean )
  792.  
  793. spotless:
  794.     rm -f *.o *~ *.orig *.rej *.bak term/*~ term/*.orig term/*.bak \
  795.     TAGS gnuplot gnuplot_x11 \
  796.     bf_test demo/binary[1-3]
  797.     ( cd docs; $(MAKE) $(MFLAGS) clean )
  798.     ( cd docs/latextut; $(MAKE) $(MFLAGS) spotless )
  799.  
  800. ################################################################
  801. # Making shar files for mailing gnuplot
  802.  
  803. shar: gnuplot.sh00 gnuplot.sh01 gnuplot.sh02 gnuplot.sh03 gnuplot.sh04 \
  804.     gnuplot.sh05 gnuplot.sh06 gnuplot.sh07 gnuplot.sh08 \
  805.     gnuplot.sh09 gnuplot.sh10 gnuplot.sh11 gnuplot.sh12 \
  806.     gnuplot.sh13 gnuplot.sh14 gnuplot.sh15 gnuplot.sh16
  807.  
  808. gnuplot.sh00:
  809.     echo '#!/bin/sh' > gnuplot.sh00
  810.     echo '# This is a shell file to make directories' >> gnuplot.sh00
  811.     echo mkdir $(DIRS) >> gnuplot.sh00
  812.  
  813. gnuplot.sh01: $(ETC) 
  814.     shar $(ETC) > gnuplot.sh01
  815.  
  816. gnuplot.sh02: $(DOCS1)
  817.     shar $(DOCS1) > gnuplot.sh02
  818.  
  819. gnuplot.sh03: $(DOCS2)
  820.     shar $(DOCS2) > gnuplot.sh03
  821.  
  822. gnuplot.sh04: $(DOCS3)
  823.     shar $(DOCS3) > gnuplot.sh04
  824.  
  825. gnuplot.sh05: $(CSOURCE1)
  826.     shar $(CSOURCE1) > gnuplot.sh05
  827.  
  828. gnuplot.sh06: $(CSOURCE2)
  829.     shar $(CSOURCE2) > gnuplot.sh06
  830.  
  831. gnuplot.sh07: $(CSOURCE3)
  832.     shar $(CSOURCE3) > gnuplot.sh07
  833.  
  834. gnuplot.sh08: $(CSOURCE4)
  835.     shar $(CSOURCE4) > gnuplot.sh08
  836.  
  837. gnuplot.sh09: $(CSOURCE5)
  838.     shar $(CSOURCE5) > gnuplot.sh09
  839.  
  840. gnuplot.sh10: $(CSOURCE6)
  841.     shar $(CSOURCE6) > gnuplot.sh10
  842.  
  843. gnuplot.sh11: $(CSOURCE7)
  844.     shar $(CSOURCE7) > gnuplot.sh11
  845.  
  846. gnuplot.sh12: $(PC)
  847.     shar $(PC) > gnuplot.sh12
  848.  
  849. gnuplot.sh13: $(CSOURCE8)
  850.     shar $(CSOURCE8) > gnuplot.sh13
  851.  
  852. gnuplot.sh14: $(DEMOS)
  853.     shar $(DEMOS) > gnuplot.sh14
  854.  
  855. gnuplot.sh15: $(WINDOWS)
  856.     shar $(WINDOWS) > gnuplot.sh15
  857.  
  858. gnuplot.sh16: $(BETA)
  859.     shar $(BETA) > gnuplot.sh16
  860.  
  861. tar: $(ETC) $(SOURCES) $(PC) $(DEMOS) $(BETA) $(DOCS) 
  862.     $(TAR) cvf /tmp/gnuplot.tar $(ETC) $(SOURCES) $(PC)\
  863.          $(DEMOS) $(BETA) $(DOCS) 
  864. #
  865. # the following uses Rick Saltz's makekit shar generation tools
  866. #
  867.  
  868. kit: $(ETC) $(SOURCES) $(PC) $(DEMOS) $(BETA) $(DOCS) 
  869.     makekit -s135k -k30 $(ETC) $(SOURCES) $(PC)\
  870.          $(DEMOS) $(BETA) $(DOCS) 
  871.  
  872. branch: rcs rcsdoc rcsdemo
  873.  
  874. rcs:
  875.     rcs -b$(RCSVER) $(ETC) $(SOURCES) $(PC) 
  876.  
  877. rcsdoc:
  878.     rcs -b$(RCSVER) $(DOCS)
  879.  
  880. rcsdemo:
  881.     rcs -b$(RCSVER) $(DEMOS)
  882.  
  883. ciall: ci cidoc cidemo
  884.  
  885. ci:
  886.     ci -l$(RCSVER) -m$(RCSCOM) -t-$(RCSCOM) $(SOURCES) $(PC) $(ETC) 
  887.  
  888. cidoc:
  889.     ci -l$(RCSVER) -m$(RCSCOM) -t-$(RCSCOM) $(DOCS)
  890.  
  891. cidemo:
  892.     ci -l$(RCSVER) -m$(RCSCOM) -t-$(RCSCOM) $(DEMOS)
  893.  
  894. ciforce:
  895.     ci -f$(RCSVER) -m$(RCSCOM) -t-$(RCSCOM) $(SOURCES) $(ETC) $(DOCS) $(DEMOS) $(PC)
  896.  
  897. coall: co codoc codemo
  898.  
  899. co:
  900.     co -l -r$(RCSVER) $(ETC) $(SOURCES) $(PC)
  901.  
  902. codoc:
  903.     co -l -r$(RCSVER) $(DOCS)
  904.  
  905. codemo:
  906.     co -l -r$(RCSVER) $(DEMOS)
  907.